﻿using OASystem.BLL.IService;
using OASystem.BLL.Service;
using OASystem.Model;
using OASystem.Models;
using OASystem.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace OASystem.Controllers
{
    public class Person_tailController : Controller
    { 
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="userinfo"></param>
        /// <ret urns></returns>
        public JsonResult MoreAdd(Userinfo userinfo, int pos)
        {
            PersonService personService = new PersonService();
            ResponseResult responseResult = new ResponseResult();
            responseResult = personService.MoreAdd(userinfo, pos);
            return Json(responseResult);
        }
        /// <summary>
        /// 判断
        /// </summary>
        /// <param name="maillist"></param>
        /// <returns></returns>
        public JsonResult QueryPerson(string name)
        {
            Person_tailService person = new Person_tailService();
            ResponseResult result = new ResponseResult();
            result.data = person.QueryPerson(name);
            return Json(result.data);
        }
    }
}